import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_app/NormalNumber.dart';

class NumberButtorn extends StatefulWidget {
  Number number;
  EdgeInsetsGeometry pad;

  NumberButtorn({Key key, this.number, this.pad}) : super(key: key);

  @override
  _NumberButtornState createState() => _NumberButtornState();
}

class _NumberButtornState extends State<NumberButtorn> {
  @override
  Widget build(BuildContext context) {
    return Expanded(
      flex: 1,
      child: Padding(
        padding: widget.pad,
        child: Container(
          alignment: Alignment.center,
          color: Colors.grey[200],
          child: Text('${widget.number.display}',
              style: TextStyle(fontSize: 30.0, color: Colors.grey)),
        ),
      ),
    );
  }
}
